@import "./theme";

html,
body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  font-weight: @font-weight !important;
  -webkit-user-select: none;
  /* 禁止选中文本（如无文本选中需求，此为必选项） */
  user-select: none;
  //background: @background-color;
  margin: 0;
  padding: 0;
  color: @font-color;
  font-family:"PingFang SC","Helvetica Neue",Helvetica,"Nimbus Sans L",Arial,"Liberation Sans","Hiragino Sans GB","Source Han Sans CN Normal","Microsoft YaHei","Wenquanyi Micro Hei","WenQuanYi Zen Hei","ST Heiti",SimHei,"WenQuanYi Zen Hei Sharp", sans-serif;
}

button,
h1,
h2,
h3,
h4,
h5,
h6,
input {
  font-weight: @font-weight !important;
}

a,
img {
  -webkit-touch-callout: none;
  /* 禁止长按链接与图片弹出菜单 */
}

a {
  text-decoration: none;
  &:hover,
  &:active,
  &:focus {
    text-decoration: none;
  }
}

img {
  vertical-align: middle;
  border: 0;
  width: 100%;
  height: auto;
}

/**
* vue-router transition
*/

.vux-pop-out-enter-active,
.vux-pop-out-leave-active,
.vux-pop-in-enter-active,
.vux-pop-in-leave-active {
  will-change: transform;
  transition: all 500ms;
  // height: 100%;
  background: @background-color;
  position: absolute;
  backface-visibility: hidden;
  perspective: 1000;
}

.vux-pop-out-enter {
  opacity: 0;
  transform: translate3d(-100%, 0, 0);
}

.vux-pop-out-leave-active {
  opacity: 0;
  transform: translate3d(100%, 0, 0);
}

.vux-pop-in-enter {
  opacity: 0;
  transform: translate3d(100%, 0, 0);
}

.vux-pop-in-leave-active {
  opacity: 0;
  transform: translate3d(-100%, 0, 0);
}

/**
* clearfix hack
*/

.clearfix {
  &.span {
    height: @spacing-height;
    background-color: @background-color
  }
  &:before,
  &:after {
    content: " ";
    display: table;
  }
  &:after {
    clear: both;
  }
}

.weui-mask.transparent {
  background-color: transparent;
}
